<?php //pr($notices)?>
<?php if($logged == true){?>
	<div id="left_column" class="column_left">
            	<?php echo $this->element('user/left_user_home_menu'); ?>
        </div>
	<div id="right_column" class="column_right">
            <div id="main-content">
            <div id="display_notice"></div>
		<div id="form_notice">
		<?php
			echo $this->element( 'notice/notice_update_form');
		?>
		</div>
		<div id="latest_notice">
                    <?php
                          if(isset($latest['Notice']['message']))
                               echo $this->Html->tag( 'p', sprintf (__('<span>Latest: </span> <em id="message_latest"> %s </em>', true), $this->Text->truncate($latest['Notice']['message']), 140), array( 'class' => 'latest-notice' ));
                    ?>
		</div>
		<div id="message_error">
		</div>
		<div  id="content_notice">

                    <?php
                        echo $this->Html->tag('h2', __('Home', true));
                        //display notice
                        echo $this->Bnotice->displayNotice($notices)
                    ?>

                    <?php //paging ?>
                    <div class="paging clearfix">
                        <p class="before"><?php echo $this->Paginator->prev(__('« Previous', true), array(), null, array('class'=>'disabled'));?></p>
                        <p class="more"><?php echo $this->Paginator->next(__('Next »', true), array(), null, array('class' => 'disabled'));?></p>
                    </div>
		</div>
            </div> <!-- end main -->
            <div id="main-right">
                
            </div>
	</div><!-- end right-column -->
<?php }else{
	$this->set('home', true);
 }
 ?>
 <script type="text/javascript">
     //<![CDATA[
     $(document).ready(function(){
                $("ul > li.notice").bind('mouseover', function(){
                    var actionId ='#ul_' + $(this).attr('id');
                    $(actionId).addClass('actions-active');
                });
                $("ul > li.notice").bind('mouseout', function(){
                    var actionId ='#ul_' + $(this).attr('id');
                    $(actionId).removeClass('actions-active');
                });

         });
    //]]>
</script>